/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sp.dao.impl;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author DINHDV
 */
public class DataAccessUtil {

    private static String jdbcDriver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    private static String connString = "jdbc:sqlserver://localhost:1433;databaseName=SHOPPING_CART_TRY;user=sa;password=adminadmin";

    protected Connection getConnection() throws Exception {
        Class.forName(jdbcDriver);
        return DriverManager.getConnection(connString);
    }
}
